package com.study.springmvc.controller;

public class ThreadLocalContext {

    private static final ThreadLocal<String> traceId = new ThreadLocal<>();
    public static String getTraceId() {
        return traceId.get();
    }
    public static void setTraceId(String traceId) {
        ThreadLocalContext.traceId.set(traceId);
    }
    public static void removeTraceId() {
        traceId.remove();
    }
}
